# -*- coding: utf-8 -*-
"""
    EauDouce.plugins.CodeHighlighting
    ~~~~~~~~~~~~~~

    highlight.js: Syntax highlighting for the Web, https://highlightjs.org.
    : 174 languages and 77 styles
    : automatic language detection
    : multi-language code highlighting
    : available for node.js
    : works with any markup
    : compatible with any js framework

    :copyright: (c) 2017 by Ivan Sagalaev.
    :license: BSD-3-Clause, see LICENSE for more details.
"""

#: Importing these two modules is the first and must be done.
#: 首先导入这两个必须模块
from __future__ import absolute_import
from libs.base import PluginBase
#: Import the other modules here, and if it's your own module, use the relative Import. eg: from .lib import Lib
#: 在这里导入其他模块, 如果有自定义包目录, 使用相对导入, 如: from .lib import Lib
from config import PLUGINS

#：Your plug-in name must be consistent with the plug-in directory name.
#：你的插件名称，必须和插件目录名称等保持一致.
__name__        = "CodeHighlighting"
#: Plugin describes information. What does it do?
#: 插件描述信息,什么用处.
__description__ = "代码高亮插件"
#: Plugin Author
#: 插件作者
__author__      = "Ivan Sagalaev"
#: Plugin Version
#: 插件版本
__version__     = "9.7.0" 
#: Plugin Url
#: 插件主页
__url__         = "https://highlightjs.org/"
#: Plugin License
#: 插件许可证
__license__     = "BSD-3-Clause"
#: 插件状态, enabled、disabled, 默认enabled
if PLUGINS["CodeHighlighting"] in ("true", "True", True):
    __state__   = "enabled"
else:
    __state__   = "disabled"

#: 返回插件主类
def getPluginClass():
    return CodeHighlighting_Highlight

class CodeHighlighting_Highlight(PluginBase):
    
    __doc__ = __description__

    def register_tep(self):
        return {"blog_show_header_include": "CodeHighlighting/CodeHighlighting.html"}
